package org.opu.vcforms.datasource;

import java.util.Iterator;
import java.util.Map;

/**
 *
 * @author yura
 */
public class LocalStorege implements Iterable<String>{
    
    private Map<String, ?> data;

    public LocalStorege(Map<String, ?> data) {
        this.data = data;
    }

    public int size() {
        return data.size();
    }

    public Object get(String key) {
        return data.get(key);
    }
    
    @Override
    public Iterator<String> iterator() {
        return data.keySet().iterator();
    }

    public String iteratorToString() {
        return String.valueOf(data.keySet());
    }

    @Override
    public String toString() {
        return "LocalStorege{" + "data=" + data + '}';
    }
}
